﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Threading;

namespace Documentanalysis
{
    public partial class Waiting : Form
    {
        public Thread t2;
        public string path;
        public Waiting()
        {
            InitializeComponent();
        }

        private void Waiting_Load(object sender, EventArgs e)
        {
            label1.Text = "正在分析" + path;
        }

        public void getMessageFromTask()
        {
            this.BeginInvoke(new MethodInvoker(() =>
            {
                this.Close();
            }));
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (t2 != null)
            {
                t2.Abort();
            }
            this.Close();
        }
    }
}
